//
//  GameFlow.cpp
//  QuizMaster
//
//  Created by Jeppe Nielsen on 3/23/15.
//  Copyright (c) 2015 Jeppe Nielsen. All rights reserved.
//

#include "GameFlow.hpp"





void GameFlow::SwitchState(State state) {
    wantedState = state;
}

void GameFlow::Update(float dt) {
    if (wantedState!=currentState) {
        ExitState(currentState);
        currentState = wantedState;
        EnterState(currentState);
    }
    UpdateState(currentState, dt);
}

void GameFlow::Initialize(Nano::GameWorld *world) {
    
}






